package com.mall.product.service.impl;

import com.mall.entity.TbCar;
import com.mall.product.mapper.CarMapper;
import com.mall.product.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 购物车业务处理
 *
 * @author ASUS
 * @date 2021/07/18
 */
@Service
public class CarServiceImpl implements CarService {

    @Autowired
    private CarMapper carMapper;

    /**
     * 找到秒杀购物车
     *
     * @return {@link List<TbCar>}
     */
    @Override
    public List<TbCar> findSeckillCar() {
        return carMapper.findSeckillCar();
    }

    @Override
    public List<TbCar> findCarByStatus() {
        return carMapper.findCarByStatus();
    }
}
